from google.appengine.ext import db
from google.appengine.ext.db import polymodel

class Image(db.Model):
	
	name		= db.StringProperty(required=True)
	url			= db.LinkProperty(required=True)
	desc		= db.StringProperty(multiline=True)
	

	def __init(self, name, url=None, local=True):
		
		#by local image construct url self
		self.name 	= name
		url 		= url
		
class ImageContainer( db.Model ):
    
    _images = db.ListProperty(db.Key)
    
    @property
    def images():
        
        """ return equipment """
        
        pass
